package com.ruoyi.project.system.question.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 答题记录对象 dj_exam_record
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
public class ExamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 考试类型（1知识答题 2PK答题） */
    private Integer examType;
    /** 考试配置ID */
    private Long configId ;

    public Long getConfigId() {
        return configId;
    }

    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    public String getPkBattleId() {
        return pkBattleId;
    }

    public void setPkBattleId(String pkBattleId) {
        this.pkBattleId = pkBattleId;
    }

    /** pk 答题 id */
    private  String pkBattleId;

    /** 得分 */
    private Integer score;

    /** 总题数 */
    private Integer totalQuestion;

    /** 答对题数 */
    private Integer correctQuestion;

    /** 答错题数 */
    private Integer wrongQuestion;

    /** 用时（秒） */
    private Integer useTime;

    /** 答题时间 */
    private Date examDate;

    /** 删除标志（0正常 1删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExamType(Integer examType) 
    {
        this.examType = examType;
    }

    public Integer getExamType() 
    {
        return examType;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setTotalQuestion(Integer totalQuestion) 
    {
        this.totalQuestion = totalQuestion;
    }

    public Integer getTotalQuestion() 
    {
        return totalQuestion;
    }
    public void setCorrectQuestion(Integer correctQuestion) 
    {
        this.correctQuestion = correctQuestion;
    }

    public Integer getCorrectQuestion() 
    {
        return correctQuestion;
    }
    public void setWrongQuestion(Integer wrongQuestion) 
    {
        this.wrongQuestion = wrongQuestion;
    }

    public Integer getWrongQuestion() 
    {
        return wrongQuestion;
    }
    public void setUseTime(Integer useTime) 
    {
        this.useTime = useTime;
    }

    public Integer getUseTime() 
    {
        return useTime;
    }
    public void setExamDate(Date examDate) 
    {
        this.examDate = examDate;
    }

    public Date getExamDate() 
    {
        return examDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("examType", getExamType())
            .append("score", getScore())
            .append("totalQuestion", getTotalQuestion())
            .append("correctQuestion", getCorrectQuestion())
            .append("wrongQuestion", getWrongQuestion())
            .append("useTime", getUseTime())
            .append("examDate", getExamDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}